package com.daniel.gof.builder;

/**
 * 详细说明
 *
 * @author Daniel
 * @version V1.0
 * @date 2020/5/28 17:31
 */
public class MoonComputerBuilder implements Builder {
	private Computer computer;

	public MoonComputerBuilder() {
		computer = new Computer();
	}

	@Override
	public void addCpu() {
		computer.setCpu("intel");
	}

	@Override
	public void addMainBoard() {
		computer.setMainBoard("amd");
	}

	@Override
	public void addRam() {
		computer.setRam("king");
	}

	@Override
	public Computer getComputer() {
		return computer;
	}
}
